﻿using SqlSugar;
using System;

namespace NetCore.Model.Enity
{
    /// <summary>
    /// 班次表
    ///</summary>
    [SugarTable("sys_ondutyinfo")]
    public class SysOndutyinfo
    {
        /// <summary>
        /// 主键
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 当班类型id
        ///</summary>
        [SugarColumn(ColumnName = "ondutytypeid")]
        public long Ondutytypeid { get; set; }

        /// <summary>
        /// 当班人id
        ///</summary>
        [SugarColumn(ColumnName = "personondutyid")]
        public int Personondutyid { get; set; }

        /// <summary>
        /// 设备id
        ///</summary>
        [SugarColumn(ColumnName = "equipmentid")]
        public int Equipmentid { get; set; }

        /// <summary>
        /// 添加用户id
        ///</summary>
        [SugarColumn(ColumnName = "Creator")]
        public string Creator { get; set; }

        /// <summary>
        /// 添加时间
        ///</summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 当班开始时间
        ///</summary>
        [SugarColumn(ColumnName = "starttime")]
        public DateTime Starttime { get; set; }

        /// <summary>
        /// 当班结束时间
        ///</summary>
        [SugarColumn(ColumnName = "endtime")]
        public DateTime Endtime { get; set; }
    }
}